package legumes.client.services.callbacks;

import legumes.client.services.LegumesServicesHelper;
import legumes.client.services.util.rpc.SequencableRPCCall;

public class GetMessageStoreCallback extends SequencableRPCCall<String> {

	private String message;

	public GetMessageStoreCallback() {
	}

	@Override
	protected void doCall() {
		LegumesServicesHelper.LEGUMES_SERVICES.getMessageStore(this);
	}

	@Override
	public void onSuccess(String result_) {
		message = result_;
		callNext();
	}

	public String getStoreMessage() {
		return message;
	}

}